package com.financial.service.sysconfig.controller;

import com.financial.service.sysconfig.service.FinancialSysconfigRouteService;
import com.financial.service.sysconfig.util.apiresult.ApiResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


/**
 * 金融中心地址路由配置表
 * 
 * @author WANGNING
 * @email wyn20140226@aliyun.com
 * @date 2019-12-25 14:43:08
 */
 
@RestController
@RequestMapping("/route")
public class FinancialSysconfigRouteController {
	@Autowired
	private FinancialSysconfigRouteService financialSysconfigRouteService;

	/**
	 * 通过业务类型获取路由地址
	 * @return ApiResult
	 */
	@PostMapping("/getRoutePath")
	public ApiResult getRoutePath(@RequestParam String businessType){
		return financialSysconfigRouteService.getRoutePath(businessType);
	}
	
}
